
@echo off
set curpath=%~dp0
set serviceName=test1
set serviceBin=%curpath%CmdService\bin\Release\CmdService.exe
set serviceArgs=-r C:\Users\HLART-4\Desktop\tcluster_leizou\server_all.bat -s C:\Users\HLART-4\Desktop\tcluster_leizou\server_stop_all.bat

echo curpath: %curpath%
echo serviceBin: %serviceBin%
echo serviceArgs: %serviceArgs%

sc create %serviceName% binPath= "%serviceBin% %serviceArgs%" start= auto


pause
